# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=mysecureshell
pkgver=2.00
pkgrel=0
pkgdesc="A solution which has been made to bring more features to sftp/scp protocol given by OpenSSH."
url="https://github.com/mysecureshell/mysecureshell"
arch="all"
license="GPL"
depends="openssh"
makedepends="musl-dev"
install="$pkgname.post-install $pkgname.post-deinstall"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz
	0001-include-types.h.patch
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-shutfile=/var/lib/misc/sftp.shut
	make all
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="956404bfcb48e2838e8b0eeea9ee5b07de70fd51480f3c98c1029c627d914adde483bb85e877e1ca206c376ed803205a20e1b90a74c5218d9cc9338a9a1f626b  mysecureshell-2.00.tar.gz
ba0e5e02740118d9c6d7ec3e4c122b90269ebf2dd73a35e409cb118a125989debf8149ed87bb3b96bed755ce886ffa6ebf293b70937f93f02c73e71304250aad  0001-include-types.h.patch"
